<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.researcher.domain.*" pageEncoding="UTF-8"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
SystemDict dict = (SystemDict)request.getAttribute("dict");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<TITLE>修改数据字典</TITLE>
<link href="<%=basePath%>index/Themes/com/style.css" rel="stylesheet" type="text/css" />
    <script src="<%=basePath%>index/Scripts/Script.js" language="javascript" type="text/javascript"></script>
	<SCRIPT type="text/javascript">
	function check(){
    var fm=document.forms[0];
    if(fm.name.value==""){
		    alert("请填写数据字典名称!");
		    fm.name.focus();
		    return false;
	    }
	    if(fm.dictCode.value==""){
		    alert("请填写数据字典编码!");
		    fm.dictCode.focus();
		    return false;
	    }
    return true;
    }
	</SCRIPT>
</head>
  
<body style="text-align:center;">
  <form method="post" action="systemDict.htm?action=add&flag=mod" onSubmit="return check();">
 <table cellpadding="0" cellspacing="0" width="100%" height="100%" id="Table8">
        <tr>
            <td valign="top" height="100%">
                <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" id="Table11">
                    <tr>
                        <td valign="top" >
                            <!------------------ 标题栏 ------------------>
                            <!--- 标题 ---->
                            <table class="idt_tle_mg" cellspacing="0" cellpadding="0" width="100%">
                                <tr>
                                    <td class="idt_tle_i">
                                        <img id="imgForm6" src="<%=basePath%>index/Themes/com/idt_tle_o.gif"></td>
                                    <td class="idt_tle_f1">
                                       修改数据字典</td>
                                </tr>
                            </table>
                            <!--- 内容 --->
                            <div id="tdForm">
                                <table border="0" cellpadding="0" cellspacing="1" width="100%" class="idt_fim_mg">
                                  <tr>
								    <td class="fim_l">字典编码</td>
								    <td class="fim_r"><input class="com_textbox" name="dictCode" type="text" value="<%=dict.getReserve() %>" maxlength="128"><font color="red">*</font>
								     </td>
								      <td class="fim_l">字典类型</td>
								    <td class="fim_r" width="40%">
								     <select name="dictType" style="width:100%"> 
							                <option value="1" <%if("1".equals(dict.getDictType())){out.print(" selected");} %>>文档类型</option>
							                <option value="2" <%if("2".equals(dict.getDictType())){out.print(" selected");} %>>创新类型</option>
							                <option value="3" <%if("3".equals(dict.getDictType())){out.print(" selected");} %>>地区代码</option>
							                <option value="4" <%if("4".equals(dict.getDictType())){out.print(" selected");} %>>单位性质</option>
							                <option value="5" <%if("5".equals(dict.getDictType())){out.print(" selected");} %>>活动类型</option>
							                <option value="6" <%if("6".equals(dict.getDictType())){out.print(" selected");} %>>技术标准</option>
							                <option value="7" <%if("7".equals(dict.getDictType())){out.print(" selected");} %>>密级代码</option>
							                <option value="8" <%if("8".equals(dict.getDictType())){out.print(" selected");} %>>预期成果</option>
							                <option value="9" <%if("9".equals(dict.getDictType())){out.print(" selected");} %>>职称</option>
							                <option value="10" <%if("10".equals(dict.getDictType())){out.print(" selected");} %>>主管部门</option>
							                <option value="11" <%if("11".equals(dict.getDictType())){out.print(" selected");} %>>学历</option>
							                <option value="12" <%if("12".equals(dict.getDictType())){out.print(" selected");} %>>证件类型</option>
							                <option value="13" <%if("13".equals(dict.getDictType())){out.print(" selected");} %>>专业</option>
							                  <option value="14" <%if("14".equals(dict.getDictType())){out.println(" selected");} %>>申报类型</option>
							             </select>
								    </td> 
								  </tr>
								  <tr>
								  <td class="fim_l" >字典名称</td>
								    <td class="fim_r" colspan="3">
								    <input class="com_textbox" name="name" type="text" value="<%=dict.getName()%>" style="width:98%"maxlength="128"><font color="red">*</font>
								    </td>
								    </tr>
								  
                                </table>
                                
                                <table cellspacing="0" cellpadding="0" width="100%" class="idt_bottom_mg" border="0">
                                    <tr>
                                        <td align="right">
                                            <input  class="com_btn2" id="Button1" name="save" type="submit" value="保存">
                                            <input type="button" value="取消" name="B4" class="com_btn2" id="Button2" onclick="javascript:window.close();">
                                        </td>
                                    </tr>
                                    <input name="id" type="hidden" value="<%=dict.getId() %>" /> 
                                </table>
                            </div>
                </table></form> 
  </body>
</html>
